package com.example.wemedia.service;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;

import java.util.List;

public interface WmNewsService {
    ResponseResult getAllList(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult addWmNews(WmNewsDto wmNewsDto);

    ResponseResult del(Integer id);

    WmNews getNewsById(Integer id);

    Integer updateWmNews(WmNews wmNews,Integer status);

    List<WmNews> getCheckedWmnews();

    Integer updateWmNew(WmNews wmNews);

    String selectName(Integer userId);
}
